package main

import (
    "fmt"
    "xncc_client/manager"
)

func main() {
    fmt.Println("please input addr")
    serverAddr := ""
    fmt.Scanf("%s", &serverAddr)

    //客户端启动
    client := manager.TcpClient{}
    client.Init(serverAddr)
    client.Start()
    //客户端和服务端进行交互

    for {
        fmt.Println("please input a test string ")
        testStr := ""
        fmt.Scanf("%s", &testStr)
        //numStr, _ := cc.ReadAString()
        client.SendTestMsg(testStr)
    }
}
